<template>
    <div>
         B组件
    </div>
</template>
<script>
import mitt from './bus.js'

export default {
    data(){
        return{
          
        }
    },
    mounted(){
       mitt.on('qwe',res=>{
        console.log(res);
       })
    }
}
</script>